package com.xiaoxian.org.service.impl;

import com.xiaoxian.basic.commoneumn.ErrorCode;
import com.xiaoxian.basic.exception.CustomException;
import com.xiaoxian.basic.service.impl.BaseServiceImpl;
import com.xiaoxian.basic.util.PageList;
import com.xiaoxian.org.domain.Employee;
import com.xiaoxian.org.mapper.EmployeeMapper;
import com.xiaoxian.org.query.EmployeeQuery;
import com.xiaoxian.org.service.IEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
public class EmployeeServiceImpl extends BaseServiceImpl<Employee> implements IEmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;
    @Override
    public List<Employee> shopEmp(Long id) {

        return employeeMapper.findByShopId(id);
    }
}
